package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.product.ProductSpec;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: ProductSpecService
 * Package: com.atguigu.spzx.manager.service
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/6 9:46
 * @Version 1.0
 */

public interface ProductSpecService {
    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<ProductSpec> page(Integer pageNum, Integer pageSize);

    void save(ProductSpec productSpec);


    void deleteById(Long id);

    void updateById(ProductSpec productSpec);

    /**
     * 查询所有商品规格
     * @return
     */
    List<ProductSpec> findAll();
}
